package xyz.whiteblue.core;

import java.util.Map;

/**
 * Created by WhiteBlue on 15/6/15.
 */
public class UrlAction {
    private String url0;

    private String url1;

    private Map<Integer, String> map;

    private ActionType actionType;

    public UrlAction(String url0, String url1, ActionType actionType) {
        this.actionType = actionType;
        this.url0 = url0;
        this.url1 = url1;
    }

    public UrlAction(String url0, String url1, ActionType actionType, Map<Integer, String> map) {
        this.actionType = actionType;
        this.url0 = url0;
        this.url1 = url1;
        this.map = map;
    }


    public void setUrlPara(int index, String para) {
        map.put(index, para);
    }

    public String getUrlPara(int index) {
        return map.get(index);
    }

    public String getUrl0() {
        return url0;
    }

    public void setUrl0(String url0) {
        this.url0 = url0;
    }

    public String getUrl1() {
        return url1;
    }

    public void setUrl1(String url1) {
        this.url1 = url1;
    }

    public ActionType getActionType() {
        return actionType;
    }


}
